<div class="alert alert-warning">
<% if @errors.errors.any? %>
    <p>chengong</p>
    <a class="close" data-dismiss="alert"></a>
      <% @errors.errors.full_messages.each do |msg| %>
        <p><%= msg %></p>
      <% end %>
<% end %>
</div>